package com.eastjet.maintenance.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 故障报修表
 * @TableName device_frr
 */
@TableName(value ="device_frr")
@Data
public class DeviceFrr implements Serializable {


    @TableField(exist = false)
    private Equipment equipment;

    @TableField(exist = false)
      private DeviceDept  deviceDept;


    /**
     * 报修编号
     */
    @TableId(type = IdType.AUTO)
    private Integer frrId;

    /**
     * 报修编码
     */
    private String code;

    /**
     * 报修状态
     */
    private Integer frrType;

    /**
     * 报修主题
     */
    private String frrTopic;

    /**
     * 报修人
     */
    private String frrPerson;

    /**
     * 报修时间
     */
    private Date frrTime;

    /**
     * 故障时间
     */
    private Date frrBadtime;

    /**
     * 故障等级(0-高 1-中 2-低)
     */
    private String frrBadgrade;

    /**
     * 故障类型
     */
    private Integer frrBadtype;

    /**
     * 是否停用
     */
    private Integer isStop;

    /**
     * 设备编号
     */
    private Integer frrEquipmentId;

    /**
     * 关联工单编号
     */
    private String relevancy;

    /**
     * 备注
     */
    private String notes;

    /**
     * 创建人
     */
    private String insertPerson;

    /**
     * 创建时间
     */
    private Date insertTime;

    /**
     * 更新人
     */
    private String updatePerson;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 逻辑删除
     */
    private Integer isDelete;

    @Override
    public String toString() {
        return "DeviceFrr{" +
                "equipment=" + equipment +
                ", deviceDept=" + deviceDept +
                ", frrId=" + frrId +
                ", code='" + code + '\'' +
                ", frrType=" + frrType +
                ", frrTopic='" + frrTopic + '\'' +
                ", frrPerson='" + frrPerson + '\'' +
                ", frrTime=" + frrTime +
                ", frrBadtime=" + frrBadtime +
                ", frrBadgrade='" + frrBadgrade + '\'' +
                ", frrBadtype=" + frrBadtype +
                ", isStop=" + isStop +
                ", frrEquipmentId=" + frrEquipmentId +
                ", relevancy='" + relevancy + '\'' +
                ", notes='" + notes + '\'' +
                ", insertPerson='" + insertPerson + '\'' +
                ", insertTime=" + insertTime +
                ", updatePerson='" + updatePerson + '\'' +
                ", updateTime=" + updateTime +
                ", isDelete=" + isDelete +
                '}';
    }
}